<!doctype html>
<html>

	<head>
		<title>个人中心</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="assets/css/amazeui.min.css">
		<link rel="stylesheet" href="assets/css/style.css">
		<script src="assets/js/jquery-1.9.0.min.js"></script>
	</head>

	<body>
		<div class="containter">
			<header class="heart">
				<!--<div id="unLogin">
					<a href="login.html">请登录</a>
				</div>-->
				<!--<a href="message.html">
					<img src="assets/images/head.png" alt="">
					<p>张三丰</p>
				</a>-->
			</header>
			<div class="heart-list">
				<ul>
					<li>
						<a href="order.html"><img src="assets/images/b1.png">我的订单</a>
					</li>
					<li>
						<a href="favorite.html"><img src="assets/images/b2.png">我的收藏</a>
					</li>
					<li>
						<a href="material.html"><img src="assets/images/b4.png">常旅资料</a>
					</li>
					<li>
						<a id="heart_to_steward"><img src="assets/images/b5.png">我的旅游专家<span id="trave_mess"></span></a>
					</li>
					<li>
						<a href="change_password.html"><img src="assets/images/b6.png">修改密码</a>
					</li>
					<li id="out_login">
						<img src="assets/images/b7.png">退出账号
					</li>
				</ul>
			</div>
			<p class="base">旅游<br>Copyright&copy;2006-2016</p>
			<div class="service-list1">
				<div class="s-top"></div>
				<div class="s-center">
					<img src="assets/images/ren.png">
					<p>
						<span class="vlog_name">旅游专家</span><br>
						<span class="vlog_phone">1对1服务至心</span>
					</p>
					<button class="btn-left">选择专家</button>
					<button class="btn-right">暂不选择</button>
				</div>
			</div>
			<div class="service-list">
				<p class="s-top"></p>
				<div class="s-center">
					<img src="assets/images/head.png">
					<div class="s-right">
						<span style="font-size: 1.4rem">我的旅游专家：马钧</span>
						<span>营业部：福华营业部</span>
						<span>电话：13752567748</span>
					</div>
					<div class="clear"></div>
					<div class="bottom_btn_box" style="overflow: auto;width:100%;text-align: center;">
						<button class="btn1">切换专家</button>
						<button class="btn2">在线咨询</button>
						<button class="btn3">拨号</button>
					</div>
				</div>
			</div>
			<div style="width: 100%; height:4.5rem;"></div>
			<div class="footer">
				<ul>
					<li>
						<a href="index.html"><img src="assets/images/footer11.png"><br>首页</a>
					</li>
					<li>
						<a href="classify.html"><img src="assets/images/footer22.png"><br>分类</a>
					</li>
					<li class="service" id="service">
						<a href="#"><img src="assets/images/footer5.png"></a>
					</li>
					<li>
						<a href="hunt.html"><img src="assets/images/footer33.png"><br>目的地</a>
					</li>
					<li>
						<a href="heart.html" class="active"><img src="assets/images/footer4.png"><br>我的</a>
					</li>
				</ul>
			</div>
		</div>
		<div id="toast"></div>
		<script src="assets/js/jquery.min.js"></script>
		<script src="assets/js/allUse.js"></script>
		<script src="assets/js/amazeui.min.js"></script>
		<!--6.1个人信息-->
		<script type="text/javascript">
			if(token){
				if(sessionStorage.getItem("my_volg")==="un"){//不存在旅游专家
					live2();
				}else{
					live1();
					$("#trave_mess").html(my_volg.dep_name+"&nbsp"+my_volg.names)
				};
				$.ajax({
					type: "get",
					url: url_enter+"/api/get_user_profile",
					headers: {
						"User-Token":token,
					},
					data: {},
					success: function(data, status, xhr) {
						console.log(data);
						if(data.result===105){	
						}else if(data.result===1){
							$("header").append('<a href="message.html"><img style="border-radius: 50%;" src="'
							+data.data.head_img+'" alt=""><p>'
							+data.data.real_name+'</p></a>');
						}
						
						
					},
					error: function(xhr, status, thrown) {
						console.log(xhr);
					}
				});
			}else{
					window.location.href="login.html";
					$(document).click(function(){
						window.location.href="login.html";
					})
				
			}
			$("#out_login").click(function(){
				window.sessionStorage.removeItem("token");
				window.localStorage.removeItem("token");
				window.location.href="index.html"
			})
		</script>
	</body>

</html>